package com.carassistant.beta.common.dialog;


import android.app.Dialog;
import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.widget.ImageView;
import android.widget.TextView;

import com.carassistant.beta.R;

public class ZDYProgressDialog extends Dialog{
	TextView messageTv ;

	public ZDYProgressDialog(Context context) {
		super(context, R.style.MyDialog);
		setContentView(R.layout.viewjar_zdy_progress_dialog_view);

		ImageView iv = (ImageView) findViewById(R.id.iv);
		iv.setBackgroundResource(R.drawable.viewjar_progress_dh);
		AnimationDrawable ad = (AnimationDrawable)iv.getBackground();
		ad.start();

		messageTv = (TextView) findViewById(R.id.meg_tv);
	}

	public void setMessage(String msg) {
		messageTv.setText(msg);
	}

}
